import Vue from 'vue'
import Router from 'vue-router'
import axios from 'axios'
import goods from '@/components/goods'
import orderdetail from '../components/orderdetail/orderdetail'
import orderpay from '../components/orderdetail/orderpay'
Vue.prototype.$http = axios
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'goods',
      component: goods
    },
    {
    	path:'/orderdetail',
    	name:"orderdetail",
    	component: orderdetail
    },
    {
    	path:'/orderpay',
    	name:"orderpay",
    	component: orderpay
    }
  ]
})
